package com.mightybird.designpattern.behavioral.chainofresponsibility.concrete;

import com.mightybird.designpattern.behavioral.chainofresponsibility.Handler;

public class Manager extends Handler {
    public Manager(String name) {
        super(name);
    }

    @Override
    public void handleRequest(int leave) {
        if (leave < 10) {
            System.out.println(name + "经理审批通过：" + leave + "天假期");
        } else {
            successor.handleRequest(leave);
        }
    }
}
